package net.learn.system.convert;

import net.learn.system.entity.SysNewEntity;
import net.learn.system.vo.SysNewVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface SysNewConvert {
    SysNewConvert INSTANCE = Mappers.getMapper(SysNewConvert.class);

    SysNewVO convert(SysNewEntity entity);

    SysNewEntity convert(SysNewVO vo);

    List<SysNewVO> convertList(List<SysNewEntity> list);

}
